package com.qixin.modules.dataauth.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
public class UserDataOrgVO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**数据权限id*/
    @NotBlank(message = "数据权限不能为空")
    private String dataAuthId;
    /**对应的用户id集合*/
    @NotEmpty(message = "用户列表不能为空")
    private List<String> userIdList;

    public UserDataOrgVO(){super();}

    public UserDataOrgVO(String dataAuthId, List<String> userIdList){
        super();
        this.dataAuthId = dataAuthId;
        this.userIdList = userIdList;
    }

}
